From: Florian Müllner Date: Wed, 11 Mar 2015 22:06:50 +0000 (+0100) Subject: calendar: Only allow closing events on the current day X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1507 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=01b51cd081b15e5ecedefccc249ec4b984026ba1;p=gnome-shell.git calendar: Only allow closing events on the current day The design calls for differentiating between dismissable reminders and permanent events, based on whether the selected date is "today" or some other day. https://bugzilla.gnome.org/show_bug.cgi?id=744927 --- diff --git a/js/ui/calendar.js b/js/ui/calendar.js index 2f1fac03b..b79045e8f 100644 --- a/js/ui/calendar.js +++ b/js/ui/calendar.js @@ -1198,6 +1198,10 @@ const EventMessage = new Lang.Class({ title = title + ELLIPSIS_CHAR; } return title; + }, + + canClose: function() { + return _isToday(this._date); } });